package com.hxj.springboot01.pojo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "用户实体类",name = "Person")
public class Person implements Serializable {
    private int id;
    @Schema(description = "用户名",name =  "name",minLength =  3,maxLength = 200)
    private String name;
    private int age;
    private int sex;
    private String nat;
}
